<h1>Listing leave_employees</h1>

<table>
  <tr>
    <th>Employee</th>
    <th>Title</th>
    <th>Description</th>
    <th>Total</th>
  </tr>

<% @leave_employees.each do |leave_employee| %>
  <tr>
    <td><%=h leave_employee.employee_id %></td>
    <td><%=h leave_employee.title %></td>
    <td><%=h leave_employee.description %></td>
    <td><%=h leave_employee.total %></td>
    <td><%= link_to 'Show', leave_employee %></td>
    <td><%= link_to 'Edit', edit_leave_employee_path(leave_employee) %></td>
    <td><%= link_to 'Destroy', leave_employee, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New leave_employee', new_leave_employee_path %>